class DashboardController < ApplicationController

  before_filter :require_user

  def index
    
    @date = Time.parse("#{params[:start_date]} || Time.now.utc")
    @start_date = Date.new(@date.year, @date.month, @date.day)
    @events = Event.all

    if (params[:id] == 'id')
      @user = current_user
    else
      @user = User.find(params[:id])
    end
    
  end


end
